'use strict';

function collect_last_element(collection) {
 let result=[];
 result.push(collection[collection.length-1]);
 console.log(result);
 return result;

}

module.exports = collect_last_element;
collect_last_element( [1, 2, 3, 4, 5]);